package com.wlts.wzy.TestDemo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.kuaishou.merchant.open.api.KsMerchantApiException;
import com.kuaishou.merchant.open.api.client.AccessTokenKsMerchantClient;
import com.kuaishou.merchant.open.api.client.oauth.OauthAccessTokenKsClient;
import com.kuaishou.merchant.open.api.client.oauth.OauthCredentialKsClient;
import com.kuaishou.merchant.open.api.request.KsMerchantExpressTemplateListRequest;
import com.kuaishou.merchant.open.api.request.KsMerchantItemAddRequest;
import com.kuaishou.merchant.open.api.request.KsMerchantItemCategoryRequest;
import com.kuaishou.merchant.open.api.request.KsMerchantOrderListRequest;
import com.kuaishou.merchant.open.api.request.param.item.MerchantServiceRuleParam;
import com.kuaishou.merchant.open.api.request.param.item.MerchantSkuInfoParam;
import com.kuaishou.merchant.open.api.response.*;
import com.kuaishou.merchant.open.api.response.view.order.MerchantOrderInfoView;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.List;

public class TestExpressJson {

    public static void main(String[] args) {

        String express = "[\n" +
                "{\"name\":\"百世快递\",\"value\":1},\n" +
                "{\"name\":\"申通快递\",\"value\":3},\n" +
                "{\"name\":\"顺丰速运\",\"value\":4},\n" +
                "{\"name\":\"天天快递\",\"value\":5},\n" +
                "{\"name\":\"圆通速递\",\"value\":6},\n" +
                "{\"name\":\"韵达快运\",\"value\":7},\n" +
                "{\"name\":\"邮政快递包裹\",\"value\":8},\n" +
                "{\"name\":\"中通快递\",\"value\":9},\n" +
                "{\"name\":\"宅急送\",\"value\":10},\n" +
                "{\"name\":\"韵达快递\",\"value\":11},\n" +
                "{\"name\":\"中通快运\",\"value\":12},\n" +
                "{\"name\":\"圆通快运\",\"value\":13},\n" +
                "{\"name\":\"京东\",\"value\":14},\n" +
                "{\"name\":\"优速物流\",\"value\":15},\n" +
                "{\"name\":\"德邦\",\"value\":17},\n" +
                "{\"name\":\"民航快递\",\"value\":18},\n" +
                "{\"name\":\"快捷速递\",\"value\":19},\n" +
                "{\"name\":\"DHL中国件\",\"value\":20},\n" +
                "{\"name\":\"凡宇快递\",\"value\":21},\n" +
                "{\"name\":\"凡客配送\",\"value\":22},\n" +
                "{\"name\":\"国通快递\",\"value\":23},\n" +
                "{\"name\":\"佳吉快运\",\"value\":24},\n" +
                "{\"name\":\"跨越速运\",\"value\":25},\n" +
                "{\"name\":\"民邦速递\",\"value\":26},\n" +
                "{\"name\":\"全晨快递\",\"value\":27},\n" +
                "{\"name\":\"全一快递\",\"value\":28},\n" +
                "{\"name\":\"如风达\",\"value\":29},\n" +
                "{\"name\":\"圣安物流\",\"value\":30},\n" +
                "{\"name\":\"速尔快递\",\"value\":31},\n" +
                "{\"name\":\"盛辉物流\",\"value\":32},\n" +
                "{\"name\":\"万象物流\",\"value\":33},\n" +
                "{\"name\":\"新邦物流\",\"value\":34},\n" +
                "{\"name\":\"中铁快运\",\"value\":35},\n" +
                "{\"name\":\"信丰物流\",\"value\":36},\n" +
                "{\"name\":\"远成物流\",\"value\":37},\n" +
                "{\"name\":\"运通中港\",\"value\":38},\n" +
                "{\"name\":\"增益速递\",\"value\":39},\n" +
                "{\"name\":\"安能快递\",\"value\":40},\n" +
                "{\"name\":\"AAE\",\"value\":41},\n" +
                "{\"name\":\"Aramex\",\"value\":42},\n" +
                "{\"name\":\"安能快运（安能物流）\",\"value\":43},\n" +
                "{\"name\":\"安得物流\",\"value\":44},\n" +
                "{\"name\":\"安迅物流\",\"value\":45},\n" +
                "{\"name\":\"安捷物流\",\"value\":46},\n" +
                "{\"name\":\"Xlobo贝海国际\",\"value\":47},\n" +
                "{\"name\":\"百世快运\",\"value\":48},\n" +
                "{\"name\":\"斑马物流\",\"value\":49},\n" +
                "{\"name\":\"传喜物流\",\"value\":50},\n" +
                "{\"name\":\"承诺达\",\"value\":51},\n" +
                "{\"name\":\"成都东骏物流\",\"value\":52},\n" +
                "{\"name\":\"德邦快递\",\"value\":53},\n" +
                "{\"name\":\"大田物流\",\"value\":54},\n" +
                "{\"name\":\"递四方\",\"value\":55},\n" +
                "{\"name\":\"当当\",\"value\":56},\n" +
                "{\"name\":\"D速快递\",\"value\":57},\n" +
                "{\"name\":\"EMS-国际件\",\"value\":58},\n" +
                "{\"name\":\"EWE全球快递\",\"value\":59},\n" +
                "{\"name\":\"飞豹快递\",\"value\":61},\n" +
                "{\"name\":\"飞洋快递\",\"value\":62},\n" +
                "{\"name\":\"高捷快运\",\"value\":63},\n" +
                "{\"name\":\"海外环球\",\"value\":64},\n" +
                "{\"name\":\"黄马甲\",\"value\":65},\n" +
                "{\"name\":\"黑猫宅急便\",\"value\":66},\n" +
                "{\"name\":\"汇通天下物流\",\"value\":67},\n" +
                "{\"name\":\"环球速运\",\"value\":68},\n" +
                "{\"name\":\"恒路物流\",\"value\":69},\n" +
                "{\"name\":\"九曳供应链\",\"value\":71},\n" +
                "{\"name\":\"加运美\",\"value\":72},\n" +
                "{\"name\":\"佳怡物流\",\"value\":73},\n" +
                "{\"name\":\"京广速递\",\"value\":74},\n" +
                "{\"name\":\"加州猫速递\",\"value\":75},\n" +
                "{\"name\":\"龙邦速递\",\"value\":76},\n" +
                "{\"name\":\"联邦快递\",\"value\":77},\n" +
                "{\"name\":\"联昊通\",\"value\":78},\n" +
                "{\"name\":\"日日顺物流\",\"value\":79},\n" +
                "{\"name\":\"晟邦物流\",\"value\":80},\n" +
                "{\"name\":\"苏宁物流\",\"value\":81},\n" +
                "{\"name\":\"苏宁订单\",\"value\":82},\n" +
                "{\"name\":\"盛丰物流\",\"value\":83},\n" +
                "{\"name\":\"速必达\",\"value\":84},\n" +
                "{\"name\":\"申通国际\",\"value\":85},\n" +
                "{\"name\":\"顺心捷达\",\"value\":86},\n" +
                "{\"name\":\"商桥物流\",\"value\":87},\n" +
                "{\"name\":\"天地华宇\",\"value\":88},\n" +
                "{\"name\":\"USPS\",\"value\":89},\n" +
                "{\"name\":\"UPS\",\"value\":90},\n" +
                "{\"name\":\"微特派\",\"value\":91},\n" +
                "{\"name\":\"万家物流\",\"value\":92},\n" +
                "{\"name\":\"亚马逊中国\",\"value\":93},\n" +
                "{\"name\":\"远成快运\",\"value\":94},\n" +
                "{\"name\":\"亚风速递\",\"value\":95},\n" +
                "{\"name\":\"燕文物流\",\"value\":96},\n" +
                "{\"name\":\"优邦速运\",\"value\":98},\n" +
                "{\"name\":\"易客满\",\"value\":99},\n" +
                "{\"name\":\"壹米滴答\",\"value\":100},\n" +
                "{\"name\":\"一智通\",\"value\":101},\n" +
                "{\"name\":\"芝麻开门\",\"value\":102},\n" +
                "{\"name\":\"中邮速递\",\"value\":103},\n" +
                "{\"name\":\"中铁物流\",\"value\":104},\n" +
                "{\"name\":\"中粮鲜到家物流\",\"value\":105},\n" +
                "{\"name\":\"中外运速递\",\"value\":106},\n" +
                "{\"name\":\"卓志速运\",\"value\":107},\n" +
                "{\"name\":\"TNT\",\"value\":108},\n" +
                "{\"name\":\"极兔速递\",\"value\":109},\n" +
                "{\"name\":\"全时速运\",\"value\":110},\n" +
                "{\"name\":\"特急送\",\"value\":111},\n" +
                "{\"name\":\"众邮快递\",\"value\":112},\n" +
                "{\"name\":\"丹鸟\",\"value\":113},\n" +
                "{\"name\":\"安鲜达\",\"value\":114},\n" +
                "{\"name\":\"韩国邮政\",\"value\":115},\n" +
                "{\"name\":\"龙邦速递\",\"value\":116},\n" +
                "{\"name\":\"易达通快递\",\"value\":117},\n" +
                "{\"name\":\"其他\",\"value\":9999}\n" +
                "]";
        JSONArray jsonArray = JSON.parseArray(express);

        for (int i = 0; i < jsonArray.size(); i++) {

            System.out.println(jsonArray.get(i));

        }
    }

}
